home *** CD-ROM | disk | FTP | other *** search
- Path: news.compuserve.com!newsmaster
- From: 100660.2242@compuserve.com (Andy Graham)
- Newsgroups: comp.lang.c++
- Subject: HELP Borland C++ 5.0 pointer problem
- Date: Fri, 12 Apr 1996 21:04:49 GMT
- Organization: CompuServe Incorporated
- Message-ID: <4klke8$7mb@dub-news-svc-2.compuserve.com>
- NNTP-Posting-Host: dd26-203.compuserve.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Could you please tell me why the function below compiles and operates
- correctly under win16 but not win32 ?
-
- char* test_function(char *in_data) {
-
- char buffer[20];
- strcpy(buffer, in_data); // copy in_data to buffer
- in_data = buffer; // set pointer to buffer
-
- return(in_data);
-
- } // end test_function function
-
- Regards
-
- Andy Graham
-
-